package com.yami.shop.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yami.shop.bean.model.Agent;
import com.yami.shop.dao.AgentMapper;
import com.yami.shop.service.AgentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AgentServiceImpl extends ServiceImpl<AgentMapper, Agent> implements AgentService {

    @Autowired
    private AgentMapper agentMapper;

    @Override
    public Agent selectRepeat(Agent agent) {
        return agentMapper.selectRepeat(agent);
    }

    @Override
    public List<Agent> getAllMessage(){
        return agentMapper.getAllMessage();
    }
}
